/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.xsengine;

import java.util.ArrayList;

/**
 *
 * @author baga
 */
public class RelevantDoc {

    public static int getQueryNo(String query) {
        int valQuery = 0;
        if (query.equals("What problems and concerns are there in making up descriptive titles? What difficulties are involved in automatically retrieving articles from approximate titles? What is the usual relevance of the content of articles to their titles?")) {
            valQuery = 1;
        } else if (query.equals("How can actually pertinent data, as opposed to references or entire articles themselves, be retrieved automatically in response to information requests?")) {
            valQuery = 2;
        } else if (query.equals("What is information science? Give definitions where possible.")) {
            valQuery = 3;
        } else if (query.equals("Image recognition and any other methods of automatically transforming printed text into computer-ready form.")) {
            valQuery = 4;
        } else if (query.equals("What special training will ordinary researchers and businessmen need for proper information management and unobstructed use of information retrieval systems? What problems are they likely to encounter?")) {
            valQuery = 5;
        } else if (query.equals("What possibilities are there for verbal communication between computers and humans, that is, communication via the spoken word?")) {
            valQuery = 6;
        } else if (query.equals("Describe presently working and planned systems for publishing and printing original papers by computer, and then saving the byproduct, articles coded in data-processing form, for further use in retrieval.")) {
            valQuery = 7;
        } else if (query.equals("Describe information retrieval and indexing in other languages. What bearing does it have on the science in general?")) {
            valQuery = 8;
        } else if (query.equals("What possibilities are there for automatic grammatical and contextual analysis of articles for inclusion in an information retrieval system?")) {
            valQuery = 9;
        } else if (query.equals("The use of abstract mathematics in information retrieval, e.g. group theory.")) {
            valQuery = 10;
        } else if (query.equals("What is the need for information consolidation, evaluation, and retrieval in scientific research?")) {
            valQuery = 11;
        } else if (query.equals("Give methods for high speed publication, printing, and distribution of scientific journals.")) {
            valQuery = 12;
        } else if (query.equals("What criteria have been developed for the objective evaluation of information retrieval and dissemination systems?")) {
            valQuery = 13;
        } else if (query.equals("What future is there for automatic medical diagnosis?")) {
            valQuery = 14;
        } else if (query.equals("How much do information retrieval and dissemination systems, as well as automated libraries, cost? Are they worth it to the researcher and to industry?")) {
            valQuery = 15;
        } else if (query.equals("What systems incorporate multiprogramming or remote stations in information retrieval? What will be the extent of their use in the future?")) {
            valQuery = 16;
        } else if (query.equals("Means of obtaining large volume, high speed, customer usable information retrieval output.")) {
            valQuery = 17;
        } else if (query.equals("What methods are there for encoding, automatically matching, and automatically drawing structures extended in two dimensions, like the structural formulas for chemical compounds?")) {
            valQuery = 18;
        } else if (query.equals("Techniques of machine matching and machine searching systems. Coding and matching methods.")) {
            valQuery = 19;
        } else if (query.equals("Testing automated information systems.")) {
            valQuery = 20;
        } else if (query.equals("The need to provide personnel for the information field.")) {
            valQuery = 21;
        } else if (query.equals("Automated information in the medical field.")) {
            valQuery = 22;
        } else if (query.equals("Amount of use of books in libraries. Relation to need for automated information systems.")) {
            valQuery = 23;
        } else if (query.equals("Educational and training requirements for personnel in the information field. Possibilities for this training. Needs for programs providing this training.")) {
            valQuery = 24;
        } else if (query.equals("International systems for exchange and dissemination of information.")) {
            valQuery = 25;
        } else if (query.equals("Cost and determination of cost associated with systems of automated information.")) {
            valQuery = 26;
        } else if (query.equals("Computerized information retrieval systems. Computerized indexing systems.")) {
            valQuery = 27;
        } else if (query.equals("Computerized information systems in fields related to chemistry.")) {
            valQuery = 28;
        } else if (query.equals("Specific advantages of computerized index systems.")) {
            valQuery = 29;
        } else if (query.equals("Information dissemination by journals and periodicals.")) {
            valQuery = 30;
        } else if (query.equals("Information systems in the physical sciences.")) {
            valQuery = 31;
        } else if (query.equals("Attempts at computerized and mechanized systems for general libraries. Problems and methods of automated general author and title indexing systems.")) {
            valQuery = 32;
        } else if (query.equals("Retrieval systems which provide for the automated transmission of information to the user from a distance.")) {
            valQuery = 33;
        } else if (query.equals("Methods of coding used in computerized index systems.")) {
            valQuery = 34;
        } else if (query.equals("Government supported agencies and projects dealing with information dissemination.")) {
            valQuery = 35;
        }
        System.out.println(valQuery);
        return valQuery;
    }
    public static ArrayList getRelevantJudgemnet(String query) {
        ArrayList relDoc = new ArrayList();
        int valQuery = getQueryNo(query);
        System.out.println(valQuery);
        switch (valQuery) {
            case 1:
//1   17   0   0.000000   
//1   46   0   0.000000   
//1   62   0   0.000000   
                relDoc.add("/17.xml");
                relDoc.add("/46.xml");
                relDoc.add("/62.xml");
                break;
            case 2:
//2   12   0   0.000000
//2   71   0   0.000000
                relDoc.add("/12.xml");
                relDoc.add("/71.xml");
                break;
            case 3:
//3   3   0   0.000000
//3   43   0   0.000000
//3   45   0   0.000000
//3   60   0   0.000000
                relDoc.add("/3.xml");
                relDoc.add("/43.xml");
                relDoc.add("/45.xml");
                relDoc.add("/60.xml");
                break;
            case 4:
//4   29   0   0.000000
//4   63   0   0.000000
                relDoc.add("/29.xml");
                relDoc.add("/63.xml");
                break;
            case 5:
//5   3   0   0.000000
//5   21   0   0.000000
//5   72   0   0.000000
                relDoc.add("/3.xml");
                relDoc.add("/21.xml");
                relDoc.add("/72.xml");
                break;
            case 6:
//6   18   0   0.000000
//6   77   0   0.000000
                relDoc.add("/18.xml");
                relDoc.add("/77.xml");
                break;
            case 7:
//7   7   0   0.000000
//7   9   0   0.000000
//7   19   0   0.000000
//7   40   0   0.000000
                relDoc.add("/7.xml");
                relDoc.add("/9.xml");
                relDoc.add("/19.xml");
                relDoc.add("/40.xml");
                break;
            case 8:
//8   61   0   0.000000
                relDoc.add("/8.xml");
                break;
            case 9:
//9   50   0   0.000000
//9   82   0   0.000000
                relDoc.add("/50.xml");
                relDoc.add("/82.xml");
                break;
            case 10:
//10   2   0   0.000000
//10   11   0   0.000000
//10   29   0   0.000000
//10   39   0   0.000000
//10   50   0   0.000000
                relDoc.add("/2.xml");
                relDoc.add("/11.xml");
                relDoc.add("/29.xml");
                relDoc.add("/39.xml");
                relDoc.add("/50.xml");
                break;
            case 11:
//11   8   0   0.000000
//11   43   0   0.000000
//11   79   0   0.000000
//11   81   0   0.000000
                relDoc.add("/8.xml");
                relDoc.add("/43.xml");
                relDoc.add("/79.xml");
                relDoc.add("/81.xml");
                break;
            case 12:
//12   4   0   0.000000
//12   7   0   0.000000
//12   9   0   0.000000
//12   25   0   0.000000
//12   42   0   0.000000
                relDoc.add("/4.xml");
                relDoc.add("/7.xml");
                relDoc.add("/9.xml");
                relDoc.add("/25.xml");
                relDoc.add("/42.xml");
                break;
            case 13:
//13   1   0   0.000000
//13   14   0   0.000000
//13   27   0   0.000000
//13   37   0   0.000000
//13   65   0   0.000000
//13   80   0   0.000000
                relDoc.add("/1.xml");
                relDoc.add("/14.xml");
                relDoc.add("/27.xml");
                relDoc.add("/37.xml");
                relDoc.add("/65.xml");
                relDoc.add("/80.xml");
                break;
            case 14:
//14   20   0   0.000000
//14   33   0   0.000000
                relDoc.add("/20.xml");
                relDoc.add("/33.xml");
                break;
            case 15:
//15   6   0   0.000000
//15   11   0   0.000000
//15   32   0   0.000000
//15   36   0   0.000000
//15   37   0   0.000000
//15   67   0   0.000000
                relDoc.add("/6.xml");
                relDoc.add("/11.xml");
                relDoc.add("/32.xml");
                relDoc.add("/36.xml");
                relDoc.add("/37.xml");
                relDoc.add("/67.xml");
                break;
            case 16:
//16   1   0   0.000000
//16   18   0   0.000000
//16   55   0   0.000000
                relDoc.add("/1.xml");
                relDoc.add("18.xml");
                relDoc.add("/55.xml");
                break;
            case 17:
//17   22   0   0.000000
//17   32   0   0.000000
                relDoc.add("/32.xml");
                relDoc.add("/32.xml");
                break;
            case 18:
//18   2   0   0.000000
//18   9   0   0.000000
//18   70   0   0.000000
                relDoc.add("/2.xml");
                relDoc.add("/9.xml");
                relDoc.add("/70.xml");
                break;
            case 19:
//19   1   0   0.000000
//19   2   0   0.000000
//19   16   0   0.000000
//19   39   0   0.000000
//19   66   0   0.000000
                relDoc.add("/1.xml");
                relDoc.add("/2.xml");
                relDoc.add("/16.xml");
                relDoc.add("/39.xml");
                relDoc.add("/66.xml");
                break;
            case 20:
//20   27   0   0.000000
//20   65   0   0.000000
//20   80   0   0.000000
                relDoc.add("/27.xml");
                relDoc.add("/65.xml");
                relDoc.add("/80.xml");
                break;
            case 21:
//21   3   0   0.000000
//21   21   0   0.000000
//21   43   0   0.000000
//21   72   0   0.000000
//21   76   0   0.000000
                relDoc.add("/3.xml");
                relDoc.add("/21.xml");
                relDoc.add("/43.xml");
                relDoc.add("/72.xml");
                relDoc.add("/76.xml");
                break;
            case 22:
//22   16   0   0.000000
//22   20   0   0.000000
//22   26   0   0.000000
//22   33   0   0.000000
//22   36   0   0.000000
//22   57   0   0.000000
                relDoc.add("/16.xml");
                relDoc.add("/20.xml");
                relDoc.add("/26.xml");
                relDoc.add("/33.xml");
                relDoc.add("/36.xml");
                relDoc.add("/57.xml");
                break;
            case 23:
//23   35   0   0.000000
                relDoc.add("/3.xml");
                break;
            case 24:
//24   3   0   0.000000
//24   10   0   0.000000
//24   14   0   0.000000
//24   21   0   0.000000
//24   43   0   0.000000
//24   45   0   0.000000
//24   59   0   0.000000
//24   72   0   0.000000
//24   76   0   0.000000
                relDoc.add("/3.xml");
                relDoc.add("/10.xml");
                relDoc.add("/14.xml");
                relDoc.add("/21.xml");
                relDoc.add("/43.xml");
                relDoc.add("/45.xml");
                relDoc.add("/59.xml");
                relDoc.add("/72.xml");
                relDoc.add("/76.xml");
                break;
            case 25:
//25   13   0   0.000000
//25   24   0   0.000000
//25   53   0   0.000000
                relDoc.add("/13.xml");
                relDoc.add("/24.xml");
                relDoc.add("/53.xml");
                break;
            case 26:
//26   5   0   0.000000
                relDoc.add("/5.xml");
                break;
            case 27:
//27   1   0   0.000000
//27   2   0   0.000000
//27   6   0   0.000000
//27   8   0   0.000000
//27   9   0   0.000000
//27   11   0   0.000000
//27   14   0   0.000000
//27   15   0   0.000000
//27   16   0   0.000000
//27   18   0   0.000000
//27   20   0   0.000000
//27   22   0   0.000000
//27   23   0   0.000000
//27   26   0   0.000000
//27   30   0   0.000000
//27   32   0   0.000000
//27   33   0   0.000000
//27   34   0   0.000000
//27   36   0   0.000000
//27   37   0   0.000000
//27   39   0   0.000000
//27   40   0   0.000000
//27   41   0   0.000000
//27   48   0   0.000000
//27   55   0   0.000000
//27   57   0   0.000000
//27   61   0   0.000000
//27   62   0   0.000000
//27   66   0   0.000000
//27   68   0   0.000000
//27   69   0   0.000000
//27   70   0   0.000000
//27   79   0   0.000000
                relDoc.add("/1.xml");
                relDoc.add("/2.xml");
                relDoc.add("/6.xml");
                relDoc.add("/8.xml");
                relDoc.add("/9.xml");
                relDoc.add("/14.xml");
                relDoc.add("/11.xml");
                relDoc.add("/15.xml");
                relDoc.add("/16.xml");
                relDoc.add("/18.xml");
                relDoc.add("/20.xml");
                relDoc.add("/22.xml");
                relDoc.add("/23.xml");
                relDoc.add("/30.xml");
                relDoc.add("/32.xml");
                relDoc.add("/33.xml");
                relDoc.add("/34.xml");
                relDoc.add("/36.xml");
                relDoc.add("/37.xml");
                relDoc.add("/39.xml");
                relDoc.add("/40.xml");
                relDoc.add("/41.xml");
                relDoc.add("/48.xml");
                relDoc.add("/55.xml");
                relDoc.add("/57.xml");
                relDoc.add("/61.xml");
                relDoc.add("/62.xml");
                relDoc.add("/66.xml");
                relDoc.add("/68.xml");
                relDoc.add("/69.xml");
                relDoc.add("/70.xml");
                relDoc.add("/79.xml");
                break;
            case 28:
//28   9   0   0.000000
//28   48   0   0.000000
//28   69   0   0.000000
//28   70   0   0.000000
                relDoc.add("/9.xml");
                relDoc.add("/48.xml");
                relDoc.add("/69.xml");
                relDoc.add("/70.xml");
                break;
            case 29:
//29   36   0   0.000000
                relDoc.add("/36.xml");
                break;
            case 30:
//30   4   0   0.000000
//30   7   0   0.000000
//30   9   0   0.000000
//30   17   0   0.000000
//30   19   0   0.000000
//30   24   0   0.000000
//30   38   0   0.000000
//30   46   0   0.000000
//30   67   0   0.000000
                relDoc.add("/4.xml");
                relDoc.add("/7.xml");
                relDoc.add("/9.xml");
                relDoc.add("/17.xml");
                relDoc.add("/19.xml");
                relDoc.add("/24.xml");
                relDoc.add("/38.xml");
                relDoc.add("/46.xml");
                relDoc.add("/67.xml");
                break;
            case 31:
//31   4   0   0.000000
//31   7   0   0.000000
//31   8   0   0.000000
//31   9   0   0.000000
//31   11   0   0.000000
//31   12   0   0.000000
//31   23   0   0.000000
//31   40   0   0.000000
//31   69   0   0.000000
//31   70   0   0.000000
//31   80   0   0.000000
                relDoc.add("/4.xml");
                relDoc.add("/7.xml");
                relDoc.add("/8.xml");
                relDoc.add("/9.xml");
                relDoc.add("/11.xml");
                relDoc.add("/12.xml");
                relDoc.add("/23.xml");
                relDoc.add("/40.xml");
                relDoc.add("/69.xml");
                relDoc.add("/70.xml");
                relDoc.add("/80.xml");
                break;
            case 32:
//32   47   0   0.000000
//32   51   0   0.000000
                relDoc.add("/47.xml");
                relDoc.add("/51.xml");
                break;
            case 33:
//33   18   0   0.000000
//33   33   0   0.000000
//33   55   0   0.000000
//33   73   0   0.000000
                relDoc.add("/18.xml");
                relDoc.add("/33.xml");
                relDoc.add("/55.xml");
                relDoc.add("/73.xml");
                break;
            case 34:
//34   1   0   0.000000
//34   15   0   0.000000
//34   39   0   0.000000
//34   41   0   0.000000
//34   48   0   0.000000
//34   57   0   0.000000
                relDoc.add("/1.xml");
                relDoc.add("/15.xml");
                relDoc.add("/39.xml");
                relDoc.add("/41.xml");
                relDoc.add("/48.xml");
                relDoc.add("/57.xml");
                break;
            case 35:
//35   13   0   0.000000
//35   24   0   0.000000
//35   52   0   0.000000
//35   53   0   0.000000
//35   56   0   0.000000
//35   59   0   0.000000
//35   67   0   0.000000
//35   79   0   0.000000

                relDoc.add("/13.xml");
                relDoc.add("/24.xml");
                relDoc.add("/52.xml");
                relDoc.add("/53.xml");
                relDoc.add("/56.xml");
                relDoc.add("/59.xml");
                relDoc.add("/67.xml");
                relDoc.add("/79.xml");
                break;
        }
        return relDoc;
    }

//    public static void main(String[] args) {
//        ArrayList abc = getRelevantJudgemnet(10);
//        for (int i=0; i<abc.size(); i++) {
//            System.out.println(abc.get(i));
//        }
//    }
}
